<template>
  <!-- 这个组件只是个躯壳 -->
  <div class="wrap"
       id="#wrap"
       v-if="show">
    <div>{{text}}</div>
    <div>{{temp1}}</div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      temp1: ""
    }
  }
}
</script>

<style scoped>
.wrap {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px;
  position: fixed;
  top: 50%;
  left: 50%;
  border-radius: 10px;
  transform: translate(-50%, -50%);
  font-size: 14px;
}
</style>